package com.he.service;

import com.he.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@SuppressWarnings("All")
public interface BookService {

    //增加一本书
    public int addBook(Books books);

    //删除一本书
    public int deleteBookById(int id);

    //更新一本书
    public int updateBook(Books books);

    //查询一本书
    public Books queryBookById(int id);

    //查询全部的书
    public List<Books> queryAllBook();

    //通过名字查询书籍
    public Books queryBookByName(String bookName);



}
